home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / nethack.lha / nethack-3.1 / src / version.c < prev    next >
C/C++ Source or Header  |  1993-01-18  |  818b  |  48 lines

  1. /*    SCCS Id: @(#)version.c    3.1    92/01/04    */
  2. /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  3. /* NetHack may be freely redistributed.  See license for details. */
  4.  
  5. #include    "hack.h"
  6. #include    "date.h"
  7. #ifndef BETA
  8. # if defined(MICRO) && !defined(AMIGA) && !defined(TOS)
  9. # include    "patchlev.h"
  10. # else
  11. # include    "patchlevel.h"
  12. # endif
  13. #endif
  14.  
  15. int
  16. doversion()
  17. {
  18. #ifdef BETA
  19.     pline("%s NetHack Beta Version %s - last build %s.",
  20. #else
  21.     pline("%s NetHack Version %s.%d - last build %s.",
  22. #endif
  23.         PORT_ID, VERSION,
  24. #ifndef BETA
  25.         PATCHLEVEL,
  26. #endif
  27.         BUILD_DATE);    /* from date.h, generated by 'makedefs' */
  28.     return 0;
  29. }
  30.  
  31. int
  32. doextversion()
  33. {
  34.     display_file(OPTIONS_USED, TRUE);
  35.     return 0;
  36. }
  37.  
  38. #ifdef MICRO
  39. boolean
  40. comp_times(filetime)
  41. long filetime;
  42. {
  43.     return (filetime < BUILD_TIME);
  44. }
  45. #endif
  46.  
  47. /*version.c*/
  48.